function closeMyAd() {
	document['getElementById']('divs')['style']['display'] = 'none'
};
var $_ = function (a) {
	return document['getElementById'](a)
};
String['prototype']['GetPart'] = function (a) {
	var b = new RegExp('(^|&)' + a + '=([^&]*)(&|$)');
	var c = this['substr'](this['indexOf']('?') + 1)['match'](b);
	if (c != null) {
		return unescape(c[2])
	};
	return null
};

function ANCMedia() {
	_lg = szk['id']['logo'];
	dl = szk['id']['link'];
	pl = szk['id']['player'];
	tp = szk['id']['sv'];
	playing = szk['id']['dx'];
	home = szk['id']['home'];

	function _0x3792x8() {
		m_data = $_(dl)['innerHTML'];
		r_left = '<div id="r_data" style="display:none !important;" title="Data here !">';
		r_right = '</div>';
		m_data = m_data['replace'](/\<id\>/gi, r_left);
		m_data = m_data['replace'](/\<\/id\>/gi, r_right);
		m_data = m_data['replace'](/\[id\]/gi, r_left);
		m_data = m_data['replace'](/\[\/id\]/gi, r_right);
		$_(dl)['innerHTML'] = m_data;
		m_data = $_('r_data')['innerHTML'];
		return m_data
	};
	data = _0x3792x8();
	l_spi = data['split']('|')['length'];
	l_spk = function (a) {
		return data['split']('|')[a]['split'](';')['length']
	};
	d_spi = function (a) {
		return data['split']('|')[a]
	};
	d_spk = function (a, b) {
		return data['split']('|')[a]['split'](';')[b]
	};
	part = new Array();
	pc = ['0', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S'];
	ab = '';
	part_ep = '';
	data_out = '';
	svl = 'youtube.com,anc.yl,anc.mp4,anc.flv,megafun.vn,phimvang.org,clip.vn,ps1.bay68,ps2.bay68,picasaweb.google.com,dailymotion.com,zing.vn,4shared.com,videobb.com,videozer.com,zippyshare.com,novamov.com,twitvid.com,cyworld.vn,24video.net,movshare.net,veoh.com,blip.tv,sendspace.com,speedyshare.com,rolo.vn,tunescoop.com,eyvx.com,banbe.net,truongxua.vn,videobam.com,nhaccuatui.com,mediafire.com,vimeo.com,viddler.com,vidxden.com,xvideos.com,free18.net,nuvid.com,youjizz.com,eporner.com,gaytube.com,megafilex.com,porn.com,pornhub.com,pornoxo.com,redtube.com,slutload.com,spankwire.com,tnaflix.com,tube8.com,vtraxe.com,xhamster.com,xtube.com,xxxstash.com';
	svt = 'Youtube,Gdata,MP4,FLV,Megafun,Phimvang,Clip,VIP,Dream,Picasa,Dailymotion,Zing,4shared,Videobb,Videozer,Zippyshare,Novamov,Twitvid,Cyworld,24video,Movshare,Veoh,Blip,Sendspace,Speedyshare,Rolo,Tunescoop,Eyvx,Banbe,Truongxua,Videobam,Nhaccuatui,Mediafire,Vimeo,Viddler,Vidxden,Xvideos,Free18,Nuvid,Youjizz,Eporner,Gaytube,Megafilex,Porn,Pornhub,Pornoxo,Redtube,Slutload,Spankwire,Tnaflix,Tube8,Vtraxe,Xhamster,Xtube,Xxxstash';
	sv = svl['split'](',');
	ten_sv = svt['split'](',');
	this['Play'] = function () {
		for (var a = 0; a < ten_sv['length']; a++) {
			var b = ten_sv[a]['split']('.')[0];
			if (b == '') {
				b = home
			};
			part[a] = '<li class="sev">+Server ' + b + ':</li>'
		};
		for (var c = 0; c < l_spi; c++) {
			name_ep = d_spk(c, 0);
			for (var d = 0; d < l_spk(c); d++) {
				link_ep = d_spk(c, d);
				number_ep = Number(d_spk(c, 0));
				number_epp = '';
				if (c > 0) {
					number_epp = Number(d_spk((c - 1), 0))
				};
				if (l_spk(c) == 2) {
					ab = '';
					part_ep = ''
				}
				else {
					ab = pc[d];
					part_ep = '-' + d
				};
				(number_ep) ? name_eppart = name_ep + ab : name_eppart = name_ep + part_ep;
				if (d_spk(c, d) != '') {
					for (var a = 0; a < sv['length']; a++) {
						(d_spk(c, d)['indexOf'](sv[a]) != -1) ? part[a] += '<li onclick="M.Load(\'' + link_ep + '\',\'' + name_eppart + '\');" class="ep"><a class="a_tap" rel="' + home + ':' + name_eppart + '" title="' + name_eppart + '" href="?p=' + c + '/' + d + '/' + name_eppart['replace'](/ /gi, '_') + '">&nbsp;' + name_eppart + '&nbsp;</a></li><!--ANCMedia Part-->' : false
					}
				}
			}
		};
		data_out += '<div id="list_tap">';
		if (l_spi >= 2) {
			for (var a = 0; a < sv['length']; a++) {
				(part[a]['indexOf']('ANCMedia') != -1) ? data_out += '<ul id=\'' + a + '\'>' + part[a] + '<div style=\'clear:both;\' ></div></ul>' : false
			}
		}
		else {
			data_out += '<ul><li class="sev">+Server Home:</li>' + '<li class="ep"><a class="a_tap" rel="' + home + ': Xem Full" title="Xem Full" href="javascript:M.Load(\'' + data + '\',\'Full_time\');">Xem Full</a></li></ul>'
		};
		data_out += '<div class="clear" /></div>';
		$_(tp)['innerHTML'] = data_out
	};
	this['Load'] = function (a, b) {
		obj = '';
		name_ep = '';
		if (a['indexOf'](sv[0]) != -1) {
			a = a['replace'](/\/watch\?v=/gi, '/v/');
			a = a['replace'](/\&feature=related/gi, '');
			obj = DBOj(a)[3]
		};
		if (a['indexOf'](sv[1]) != -1) {
			a = a['replace'](/anc\.yl/gi, 'http://www.youtube.com/p/');
			obj = DBOj(a)[3]
		};
		if (a['indexOf'](sv[2]) != -1) {
			a = a['replace'](/anc\.mp4/gi, 'http:');
			obj = DBOj(a)[0]
		};
		if (a['indexOf'](sv[3]) != -1) {
			a = a['replace'](/anc\.flv/gi, 'http:');
			obj = DBOj(a)[0]
		};
		if (a['indexOf'](sv[4]) != -1) {
			a = a['replace'](/megafun\.vn/gi, '');
			obj = DBOj(a)[1]
		};
		if (a['indexOf'](sv[5]) != -1) {
			a = a['replace'](/\.html/gi, '.xml');
			obj = DBOj(a)[2]
		};
		for (var c = 6; c < sv['length']; c++) {
			if (a['indexOf'](sv[c]) != -1) {
				obj = DBOj(a)[0]
			}
		};
		if (Number(b)) {
			name_ep = '<span>\u0110ang xem:</span> ' + b + ''
		}
		else {
			if (b['length'] >= 5) {
				name_ep = '<span>\u0110ang xem:</span> ' + b + ''
			}
			else {
				if (!Number(b) && b['length'] < 5) {
					name_ep = '<span>\u0110ang xem:</span> ' + b + ''
				}
			}
		};
		$_(pl)['innerHTML'] = obj;
		$_(playing)['innerHTML'] = name_ep
	};
	this['Qstr'] = function () {
		str = window['location']['href'];
		part = str.GetPart('p');
		(part == null) ? part = '0/1/' + d_spk(0, 0) + '' : false;
		a = part['split']('/')[0];
		b = part['split']('/')[1];
		c = decodeURI(part['split']('/')[2]);
		(l_spi >= 2) ? this.Load(d_spk(a, b), c) : this.Load(data, 'Full_time')
	}
};
var DBOj = function (a) {
	_em = 'type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" autostart="true" wmode="transparent"  width="100%" height="100%"';
	_bb = '<div onclick="closeMyAd()" style="position:absolute;top:auto;left:auto;width:478px;height:110px;margin:-145px 0 0 0; overflow:hidden;font:bold 13px Tahoma;" id="divs"> <a style="color:#FFCC00;float:right;" href="javascript:void(0)" onclick="closeMyAd()">Close [X] </a><br/><center><iframe name="ICPM" marginwidth="1" marginheight="1" width="468" scrolling="no" border="0" frameborder="0" height="100" src="http://bit.ly/phim-play-Ad"></iframe></center></div>';
	return obj = ['<embed name="flashplayer" src="http://sv1.bay68.com/player.swf" FlashVars="plugins=http://sv1.bay68.com/plugins/proxy.swf&proxy.link=' + a + '&autostart=true&skin=http://sv1.bay68.com/skin/skewd/skewd.xml" ' + _em + ' />' + _bb + '', '<embed id="player" src="http://megafun.vn/common/player/player.swf" flashvars="autostart=true&file=' + a + '&streamer=http://s22.ctl.vsolutions.vn/ctl/video/&controlbar.position=bottom&controlbar.idlehide=true&backcolor=0x000000&amp;frontcolor=0xCCCCCC&amp;lightcolor=0x557722" ' + _em + ' />' + _bb + '', '<embed ' + _em + ' flashvars="plugins=http://phimvang.org/player/plugins/ListBox.swf,http://phimvang.org/player/plugins/proxy.swf&proxy.list=' + a + '&repeat=list&autostart=true" src="http://phimvang.org/player/player.swf?logo.file=http://phimvang.org/img/logo-trans.png&logo.hide=false&logo.position=top-right&logo.margin=-1010&skin=http://phimvang.org/player/plugins/skin_full.swf" name="flashplayer"/>' + _bb + '', '<embed src="' + a + '?modestbranding=1&version=3&hl=vi_VN&rel=0&autoplay=1&showsearch=0&iv_load_policy=3" ' + _em + ' allownetworking="internal"/>' + _bb + '']
};
M = new ANCMedia();
M.Play();
M.Qstr();